home *** CD-ROM | disk | FTP | other *** search
Text File | 1998-02-16 | 1.0 KB | 18 lines | [TEXT/ToyS] |
- Test({|don't crash|:1}, "No dialog ‘default item’ property.", ¬
- "This means make the first push button item into the default button and the second into the cancel button.")
- Test({default item:-1}, "dd auto dialog { … default item: -1 … }", ¬
- "This means the same as having no dialog ‘default’ property.")
- Test({default item:0}, "dd auto dialog { … default item: 0 … }", ¬
- "This means make no push button items into the default or cancel buttons.")
- Test({default item:2}, "dd auto dialog { … default item: x … } -- x≥1", ¬
- "This means make dialog item x into the default push button and the first other push button into the cancel button.")
- return
-
- on Test(dProp, m1, m2)
- dd auto dialog {size:[320, 95], contents:[¬
- {class:push button, bounds:[250, 65, 310, 85], name:"OK"}, ¬
- {class:push button, bounds:[170, 65, 230, 85], name:"Cancel"}, ¬
- {class:static text, bounds:[10, 10, 310, 10 + 16], contents:m1}, ¬
- {class:static text, bounds:[10, 30, 310, 30 + 28], contents:m2, font:{name:"Geneva", size:10}} ¬
- ]} & dProp
- end Test